#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int main()
{
    int age = 0;
    double time = 0;
    scanf("%d", &age);
    time = 3.156e7 * age;
    printf("%.0f\n", time);

    return 0;
}